package com.cloud.custom.tasklist.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cloud.custom.tasklist.service.TaskListTabProcService;
import com.cloud.custom.workflow.entity.WfItemInst;
import com.cloud.custom.workflow.mapper.WfItemInstMapper;

import tk.mybatis.mapper.entity.Example;

@Service
@Transactional
public class TaskListTabProcServiceImpl implements TaskListTabProcService {

	@Autowired
	private WfItemInstMapper wfItemInstMapper;

	@Override
	public List<WfItemInst> listProcess(long recId) {
		Example example = new Example(WfItemInst.class);
		Example.Criteria criteria = example.createCriteria();
		criteria.andEqualTo("recId", recId);
		example.orderBy("itemId");
		return wfItemInstMapper.selectByExample(example);
	}
}
